package it.gma.torero.operator;

import it.gma.torero.operand.ComparationOperand;

public class LessEqualsOperator extends AbstractComparationOperator  {
	
	

	public LessEqualsOperator(ComparationOperand operand1, ComparationOperand operand2) {
		super(operand1, operand2);
	}

	public boolean evaluate() {
		return new LessOperator(operand1, operand2).or(new EqualsOperator(operand1, operand2)).evaluate();
	}

	@Override
	public String toString() {
		return operand1 + " <= " + operand2;
	}

}
